﻿<UserControl x:Class="Hisaab.Client.Modules.Core.Bill.View.BillNavigation"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:h="clr-namespace:Hisaab.Client.Common.Helpers;assembly=Hisaab.Client.Common" h:IndexHelper.Index="2"
             mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300">
    <ListBox ItemsSource="{Binding Path=Bills}" SelectedItem="{Binding SelectedBill, Mode=TwoWay}" Style="{StaticResource NavigationList}">
        <ListBox.ItemTemplate>
            <DataTemplate>
                <StackPanel Orientation="Horizontal" >
                    <Image Source="pack://application:,,,/Hisaab.Client.Common;component/Resources/Images/16/bill.png" Margin="3 3 10 3"/>
                    <TextBlock Text="{Binding Name}" VerticalAlignment="Center" />
                </StackPanel>
            </DataTemplate>
        </ListBox.ItemTemplate>
    </ListBox>
</UserControl>